Ext.define('extjs6test.view.base.BaseToolBar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.basetoolbar',
    defaults: {
        xtype: 'button'
    },
    items: [
        {action: 'baseAdd', bind: {text: '{baseToolbar.baseAddButton}'}, iconCls: 'x-fa fa-plus', handler: 'onBaseAdd'},
        {
            action: 'baseModify',
            bind: {text: '{baseToolbar.baszhijieeModifyButton}'},
            iconCls: 'x-fa fa-edit',
            handler: 'onBaseModify'
        },
        {
            action: 'baseRemove',
            bind: {text: '{baseToolbar.baseRemoveButton}'},
            iconCls: 'x-fa fa-minus',
            handler: 'onBaseRemove'
        },
        '',
        {
            action: 'baseExportExcel',
            glyph: 'xf1c3@FontAwesome',
            handler: 'onBaseExportExcel',
            xtype:'splitbutton',
            bind: {
                text: "{baseToolbar.baseExportExcelButton}",
                menu: '{baseToolbar.baseExportSplitButton.menu}'
            }
        },
        '',
        {
            action:'baseImportExcel',
            iconCls:'x-fa fa-file-excel-o',
            xtype:'splitbutton',
            handler:'onBaseImportExcel',
            bind:{
                text:'{baseToolbar.baseImportExcelButton}',
                menu:'{baseTollbar.baseImportSplitButton.menu}'
            }
        },
        '',
        {
            action: 'baseQuery',
            bind: {text: '{baseToolbar.baseQueryButton}'},
            iconCls: 'x-fa fa-search',
            handler: 'onBaseQuery'
        }
    ]
});